import { get, post } from '../request.js';

const findJournal = post(
  '/journal/findAll',
  [
    {
      _id: '641881fa39ede6001dacb8b9',
      name: '默认订阅',
      expand: '{}',
      code: 0,
    },
  ],
  true,
);


const data = {
  _id: '0',
  name: 'Home',
  code: 0,
  expand: '{}',
  series: [
    {
      typeName: 'Home',
      sites: [
        {
          _id: '100',
          code: 0,
          name: 'AX3000',
          description: 'AX3000小米路由器',
          url: 'http://192.168.31.1/',
          icon: 'http://192.168.31.1/favicon.ico',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },
        {
          _id: '200',
          code: 0,
          name: 'ALiYun',
          description: '阿里云',
          url: 'http://121.40.111.51/',
          icon: 'https://img.alicdn.com/tfs/TB1_ZXuNcfpK1RjSZFOXXa6nFXa-32-32.ico',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        }
      ]
    },
    {
      typeName: 'PVE-iStoreOS',
      sites: [
        {
          _id: '900',
          code: 0,
          name: 'iStoreOS',
          description: 'iStoreOS',
          url: 'http://192.168.31.2/',
          icon: 'http://n.huasenjio.top//huasen-store/icon/1666507825660.png',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },
        {
          _id: '910',
          code: 0,
          name: 'PVE',
          description: 'PVE',
          url: 'https://192.168.31.2:10010/',
          icon: 'http://n.huasenjio.top//huasen-store/icon/1666507825660.png',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },
        {
          _id: '921',
          code: 0,
          name: 'Jellyfin',
          description: 'Jellyfin',
          url: 'http://192.168.31.2:8096',
          icon: 'http://192.168.31.2:8096/web/bc8d51405ec040305a87.ico',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },
        {
          _id: '922',
          code: 0,
          name: 'Homebox',
          description: 'Homebox是一个局域网测速工具',
          url: 'http://192.168.31.2:3300/',
          icon: 'http://n.huasenjio.top//huasen-store/icon/1666507825660.png',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },
        {
          _id: '923',
          code: 0,
          name: 'Ariang',
          description: 'Ariang',
          url: 'http://192.168.31.2/ariang/',
          icon: 'http://n.huasenjio.top//huasen-store/icon/1666507825660.png',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },
      ],
    },
    {
      typeName: 'PVE-CentOS',
      sites: [
        {
          _id: '930',
          code: 0,
          name: 'CentOS',
          description: 'CentOS',
          url: '192.168.31.2:10020',
          icon: 'http://n.huasenjio.top//huasen-store/icon/1666507825660.png',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{"pin":[3]}',
        },
        {
          _id: '931',
          code: 0,
          name: 'Mysql',
          description: 'Mysql',
          url: '192.168.31.2:10021',
          icon: 'http://n.huasenjio.top//huasen-store/icon/1666507825660.png',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{"pin":[3]}',
        },
        {
          _id: '932',
          code: 0,
          name: 'XXLJob',
          description: 'XXLJob',
          url: 'http://192.168.31.2:10022/jobAdmin',
          icon: 'http://n.huasenjio.top//huasen-store/icon/1666507825660.png',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },
        {
          _id: '933',
          code: 0,
          name: 'Nacos',
          description: 'Nacos',
          url: 'http://192.168.31.2:10023/nacos',
          icon: 'http://n.huasenjio.top//huasen-store/icon/1666507825660.png',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },
        {
          _id: '934',
          code: 0,
          name: 'Shiro',
          description: 'Shiro',
          url: 'http://192.168.31.2:10024/shiro',
          icon: 'http://n.huasenjio.top//huasen-store/icon/1666507825660.png',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        }
      ]
    },
    {
      typeName: '大前端',
      sites: [
        {
          _id: '711',
          code: 0,
          name: 'ElementUI',
          describe: 'ElementUI',
          description: 'ElementUI',
          url: 'https://element.eleme.cn/#/zh-CN/component/installation',
          icon: 'https://element.eleme.cn/favicon.ico',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },
        {
          _id: '712',
          code: 0,
          name: 'LayUI',
          describe: 'LayUI',
          description: 'LayUI',
          url: 'https://layui.11dz.cn/index.html',
          icon: 'https://layui.11dz.cn/favicon.ico',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },
        {
          _id: '713',
          code: 0,
          name: 'PearAdmin',
          describe: 'PearAdmin',
          description: 'PearAdmin',
          url: 'http://layui.pearadmin.com/',
          icon: 'http://layui.pearadmin.com/favicon.ico',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },
        {
          _id: '714',
          code: 0,
          name: 'AntDesignVue',
          describe: 'AntDesignVue',
          description: 'AntDesignVue',
          url: 'https://antdv.com/',
          icon: 'https://aliyuncdn.antdv.com/favicon.ico',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },
        {
          _id: '715',
          code: 0,
          name: 'AnimeJS',
          describe: 'AnimeJS',
          description: 'AnimeJS',
          url: 'https://animejs.com/',
          icon: 'https://animejs.com/documentation/assets/img/favicon.png',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },
        {
          _id: '716',
          code: 0,
          name: 'SweetAlert2',
          describe: 'SweetAlert2',
          description: 'SweetAlert2',
          url: 'https://sweetalert2.github.io/',
          icon: 'https://animejs.com/documentation/assets/img/favicon.png',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },
        {
          _id: '717',
          code: 0,
          name: 'Echarts',
          describe: 'Echarts',
          description: 'Echarts',
          url: 'https://echarts.apache.org/examples/zh/index.html',
          icon: 'https://echarts.apache.org/zh/images/favicon.png',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },
        {
          _id: '717',
          code: 0,
          name: 'Glassmorphism',
          describe: 'Glassmorphism',
          description: 'Glassmorphism',
          url: 'https://hype4.academy/tools/glassmorphism-generator',
          icon: 'https://echarts.apache.org/zh/images/favicon.png',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },
        {
          _id: '718',
          code: 0,
          name: 'LodashJS',
          describe: 'LodashJS',
          description: 'LodashJS',
          url: 'https://www.lodashjs.com/',
          icon: 'https://echarts.apache.org/zh/images/favicon.png',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },
        {
          _id: '718',
          code: 0,
          name: 'TreeJS',
          describe: 'TreeJS',
          description: 'TreeJS',
          url: 'https://www.treejs.cn/v3/main.php#_zTreeInfo',
          icon: 'https://echarts.apache.org/zh/images/favicon.png',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },
        {
          _id: '718',
          code: 0,
          name: 'jQuery插件库',
          describe: 'jQuery插件库',
          description: 'https://www.jq22.com/',
          url: 'https://www.jq22.com/',
          icon: 'https://echarts.apache.org/zh/images/favicon.png',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },
        {
          _id: '718',
          code: 0,
          name: 'JQuery之家',
          describe: 'JQuery之家',
          description: 'http://www.htmleaf.com/',
          url: 'http://www.htmleaf.com/',
          icon: 'https://echarts.apache.org/zh/images/favicon.png',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },
        {
          _id: '718',
          code: 0,
          name: 'WeUI',
          describe: 'WeUI',
          description: 'https://weui.io/',
          url: 'https://weui.io/',
          icon: 'https://echarts.apache.org/zh/images/favicon.png',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },
        {
          _id: '718',
          code: 0,
          name: 'AgileAdmin',
          describe: 'AgileAdmin',
          description: 'https://admin.gumingchen.icu/',
          url: 'https://admin.gumingchen.icu/',
          icon: '',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },
        {
          _id: '718',
          code: 0,
          name: 'VueNextAdmin',
          describe: 'VueNextAdmin',
          description: 'https://lyt-top.gitee.io/',
          url: 'https://admin.gumingchen.icu/',
          icon: '',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },
        {
          _id: '718',
          code: 0,
          name: 'JSON在线解析',
          describe: 'JSON在线解析',
          description: 'JSON在线解析',
          url: 'https://www.json.cn/',
          icon: 'https://echarts.apache.org/zh/images/favicon.png',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },
        {
          _id: '751',
          code: 0,
          name: '烟花模拟器',
          describe: '在线欣赏烟花的网站',
          description: '在线欣赏烟花的网站',
          url: 'https://toolwa.com/firework/',
          icon: 'http://n.huasenjio.top/huasen-store/icon/1680282821040.png',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        }
      ]
    },
    {
      typeName: '资源',
      sites: [
        {
          _id: '801',
          code: 0,
          name: 'Pexels',
          description: 'Pexels',
          url: 'https://www.pexels.com/zh-cn/',
          icon: 'https://www.pexels.com/assets/static/images/meta/favicon.ico',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },
        {
          _id: '200',
          code: 0,
          name: 'WallHaven',
          description: 'WallHaven',
          url: 'https://wallhaven.cc/',
          icon: 'https://wallhaven.cc/favicon.ico',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },
        {
          _id: '200',
          code: 0,
          name: '小弋の生活馆',
          description: '小弋の生活馆',
          url: 'https://lovelijunyi.gitee.io/link/',
          icon: 'https://wallhaven.cc/favicon.ico',
          enabled: true,
          remarks: '',
          __v: 0,
          expand: '{}',
        },

      ]
    },
    {
      typeName: '实用工具',
      sites: [
        {
          _id: '6418835e39ede6001dacba0b',
          name: 'ChatGPT',
          url: 'https://chat.openai.com/',
          icon: 'http://n.huasenjio.top//huasen-store/icon/1666507825660.png',
          code: 0,
          expand: '{"tag":["聊天"],"pin":[2,1,4]}',
          description: '一种基于机器学习的聊天机器人',
          remarks: '',
          describe: '一种基于机器学习的聊天机器人',
          remark: '',
        },
        {
          _id: '6418821e39ede6001dacb8bc',
          name: '熊猫缩图',
          url: 'https://tinypng.com/',
          icon: 'http://n.huasenjio.top//huasen-store/icon/1666507825660.png',
          code: 0,
          expand: '{"tag":["图片"],"pin":[3]}',
          description: '在线图片压缩工具',
          remarks: '',
          describe: '在线图片压缩工具',
          remark: '',
        }
      ]
    }
  ]
}

const findJournalInformationById = post(
  '/journal/findJournalInformationById',
  data,
  true,
);

export default {
  findJournal,
  findJournalInformationById,
};
